class HealthmanageController < ApplicationController
  def index
  end

  def out
    sign_out
    redirect_to root_path
  end

  def score
    @record_result = RecordResult.new(name:params[:name],
                                    tel: params[:tel],
                                    score1: params[:score1],
                                    score2: params[:score2],
                                    score3: params[:score3],
                                    score4: params[:score4],
                                    score5: params[:score5],
                                    score6: params[:score6],
                                    score7: params[:score7],
                                    score8: params[:score8],
                                    score9: params[:score9])
    @record_result.save
  end
end
